﻿<?
//xna
DEFINE("_ROOT",".");
include  _ROOT."/mainfile.php";
include _ROOT."/class/functions.php";
$cate = is_numeric( $_GET[cate] )  ? $_GET[cate] : "";
if(!in_array($cate,array_keys($rss_cate))) $cate="";
$arg = $cate>"" ? " and x.rss_cate='$cate' " : "";
$xnadb = $PlusDB->prefix("xna");
$xnanewsdb = $PlusDB->prefix("xna_news");
$cate_ids = implode(",",array_keys($rss_cate));
$id=$_GET[id];
$sql="select * from $xnanewsdb where id=$id";
//echo "$sql";
$rt = $PlusDB->execute($sql);

$smarty->assign("list",$ret);
$smarty->assign("rss_cate",$cates);
$smarty->display("template/default/articles.tpl");
?>